package com.jprocms.module.cms.constant;

public class CmsSysConstants {
    /**
     * HTTP 请求时，访问令牌的请求 Header
     */
    public final static String HEAD_AUTHORIZATION = "Authorization";

    public static final String TPL_PAGE_NOT_NOUNT = "sys/page_not_found";
    /**
     * 匿名用户ID
     */
    public static final Long ANONYMOUS_USER_ID = 0L;
    public static final String ANONYMOUS_USER_NAME = "匿名";
    public static final Integer STATUS_OPEN = 1;
    public static final Integer STATUS_CLOSE = 0;

    public static final Integer DEF_TOP_LEVEL = 10;

    public static final String HTTP_PROTOCOL = "http:";
    public static final String HTTPS_PROTOCOL = "https:";

    public static final String MOBILE_PATH = "/m";


    public static final String SPT = "/";

    public static final String COLL_SPT = ",";

    public static final String SUFFIX = ".html";
    public static final String DEFAULT_INDEX_PAGE = "/index.html";

    /**
     * 站点首页模板
     */
    public static final String TPL_INDEX_FILE = "index";


    //系统配置模板存储方式 1 本地 2FTP  本地模式只能再cms服务实例部署再一个服务器的情况，多个不同存储服务器不行
    public static final String TPL_STORE_TYPE_KEY = "zrcms.tpl.store.type";

    //系统配置模板存储FTP对应配置 fileConfigID
    public static final String TPL_STORE_TYPE_CONFIG_ID = "zrcms.tpl.store.config";

    /**
     * 资源路径
     */
    public static final String RES_PATH = "/res";
    /**
     * 模板路径
     */
    public static final String TPL_BASE = "/tpl";
    /**
     * 模板后缀
     */
    public static final String TPL_SUFFIX = ".html";
    /**
     * 栏目模板文件夹
     */
    public static final String TPL_CHANNEL = "channel";
    /**
     * 内容模板文件夹
     */
    public static final String TPL_CONTENT = "content";
    /**
     * 首页模板文件夹
     */
    public static final String TPL_INDEX = "index";

    /**
     * 栏目默认分页
     */
    public static final Integer CHANNEL_DEF_PAGE_SIZE = 20;

    /**
     * 默认排序值
     */
    public static final Integer DEF_SORT = 10;

    /**
     * 预览切换设备cookie
     */
    public static final String COOKIE_PREVIEW = "cookie_preview";


    /**
     * 栏目URL
     */
    public static final String CHANNEL_PREFIX = "/channel";
    /**
     * 内容URL
     */
    public static final String CONTENT_PREFIX = "/content";

    /**
     * 前台API地址
     */
    public static final String FRONT_API = "/front";

    public static final String IDENTITY_COOKIE_NAME = "jprocms-visitor";

    /**
     * cms默认多租户id
     */
    public static final Long CMS_TENANT_ID = 1l;
    /**
     * cms默认站点ID
     */
    public static final Long CMS_DEFAULT_SITE_ID = 1l;
    /**
     * cms默认LIST查询最大数量
     */
    public static final Integer CMS_LIST_MAX_COUNT = 1000;

    /**
     * SQL语句循环条数。ArticleBuffer一条记录有13个参数，13*120=1560个参数。最多可支持17个参数（17*120=2040）。
     * SQL Server最多支持2100个参数。
     */
    private static final int FOREACH_SIZE = 120;
    /**
     * SQL批量处理条数
     */
    public static final int BATCH_SIZE = 1000;

    /**
     * 脱敏字符串
     */
    public static final String DESENS_STR = "******";
}
